﻿@model HomeFloorDetail
@{
    //page title
    ViewBag.Title = "楼层三编辑";
    Html.AppendCssFileParts(true, Url.Content("~/Content/assets/admin/pages/css/pagesettings.css"));

    Html.AppendScriptParts(true, "~/Administrator/Scripts/pageSettings-floorDetail3.js");
    Html.AppendScriptParts(true, "~/Scripts/system.smallUpload.js");
    Html.AppendScriptParts(true, "~/Content/assets/global/plugins/nicescroll/jquery.nicescroll.min.js");
    Html.AppendScriptParts(true, "~/Content/assets/global/plugins/nicescroll/jquery.nicescroll.plus.js");
    Html.AppendScriptParts(true, "~/Administrator/Scripts/jquery.form.js");
}

@Html.ValidationSummary(false)
<input data-val="true"  id="homeFloorId" name="homeFloorId" type="hidden" value="@Model.Id" />
<style type="text/css">

</style>
<script type="text/javascript">
   
</script>

<div class="row">
    <div class="col-md-12">
        <div class="portlet light">
            <div class="section-header sticky">
                <div class="caption">
                    <i class="icon-equalizer font-red-sunglo"></i>
                    <span class="caption-subject font-red-sunglo bold uppercase">楼层管理 </span>
                    <span class="caption-helper">@Html.ActionLink("(" + T("Admin.Common.BackToList") + ")", "HomeFloor")</span>
                </div>
                <div class="actions">
                    <button type="submit" name="submit" value="submit" class="btn btn-primary"><i class="fa fa-check"></i>@T("Admin.Common.Save")</button>
                </div>
            </div>
            <div class="portlet-body form form-horizontal form-bordered form-row-stripped">
                <div class="form-body">
                    <div class="form-group">
                        <label class="control-label col-md-2">
                            楼层名称
                        </label>
                        <div class="col-md-6">
                            @Html.EditorFor(model => model.Name, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.Name)

                        </div>
                    </div>
                

                    <div class="form-group">
                        <label for="" class="col-sm-2 control-label">文本模块：</label>
                        <div class="col-sm-10">
                            <table class="table table-bordered">
                                <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>跳转链接</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody type="textLink">
                                   
                                    @foreach (var textLink in Model.TextLinks)
                                    {
                                        <tr type="textLink" name="@textLink.Id">
                                            <td><input class="form-control input-xs" type="text" name="name" value="@textLink.Name" /></td>
                                            <td><div class="col-md-12 input-group"><input class="form-control input-xs" type="text" id="tLink@(Guid.NewGuid().ToString())" name="url" value="@textLink.Url" /><span class="input-group-btn"><button type="button" class="btn blue" data-loading-text="加载&hellip;"><i class="fa fa-search"></i>&nbsp;搜索</button></span></div></td>
                                            <td class="td-operate"><span class="btn-a"><a>删除</a></span></td>
                                        </tr>
                                    }
                                </tbody>
                            </table>
                            <a class="add-atrr" id="addTextLink"><span class="glyphicon glyphicon-plus-sign"></span>添加</a>&nbsp;<span>(最多增加8个)</span>
                        </div>
                    </div>
                 
                </div>

            </div>
        </div>
    </div>
</div>

